Repository navigation
feat(canton): add getFee & getBalance implementations - #564
Open
friedemannf wants to merge 5 commits into
Open
friedemannf wants to merge 5 commits into
friedemannf wants to merge 5 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
CI Test Report❌ 4 of 5132 tests did not pass (pass 5128, fail 4, cancelled 0, skipped 0) in 5m 56s Failed suites: Failed testsSummaryCoverage report |
friedemannf
marked this pull request as ready for review
November 26, 2026 13:58
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add a
getFee&getBalanceimplementation toCantonChain:The
getBalancemethod simply lists the party's holdings and sums them, locked holdings are ignored.The
getFeeimplementation requires to add transaction parsing, in order to be able to get the value returned by the sender contract'sGetFeechoice.As Canton doesn't support EVM-style transaction simulation/read methods, we're instead are preparing an actual transaction and parsing the prepared payload, but are not actually sending the transaction. This doesn't require the user's signature and will not incur any traffic.